<?php 
$sql = 'SELECT  new_id,
                new_title,
                new_content_summary,
                new_image,
                new_date 
        FROM news 
        ORDER BY new_date DESC 
        LIMIT 0,3';
$db = new DBQuery;
$news = $db->query($sql);
?>
<div class="wrapContent_news">
    <div class="tabContent">
    	<h2 class="tabContentTitle">Tin tức nổi bật</h2>
    </div>
    <div class="mainContent2">
    <?php foreach($news as $anew):?>
    	<div class="news1">
    		<img class="fl" src="<?php echo ($anew['new_image']) ? $path_img_news . $anew['new_image'] : $path_img_site.'noimages.png'?>"/>
    		<h2 class="news1Title"><a href="<?=generate_detail_url('news',$anew)?>"><?php echo cut_string($anew['new_title'],50)?></a></h2>
    		<div class="newsCont"><?php  echo cut_string(removeHTML($anew['new_content_summary']),250)?></div>
    	</div>
    <?php endforeach; ?>
    </div>
</div>
<script>
$('.mainContent2').jScrollPane({
    hijackInternalLinks: true
});
</script>